package dao.impl.jd;

import dao.jd.EquipDao;
import dao.jd.PlayerDao;
import entity.jd.Player;

/**
 * @author 胡小超
 * 2024/12/5 下午4:06
 */
public class PlayerImpl implements PlayerDao {
    private  EquipDao equipDao;

    public void setEquipDao(EquipDao equipDao) {
        this.equipDao = equipDao;
    }

    //输出玩家信息
    @Override
    public void printPlayer(Player player) {
        System.out.println("玩家装备信息:");
        equipDao.print(player.getArmet());
        equipDao.print(player.getLoricae());
        equipDao.print(player.getBoot());
        equipDao.print(player.getRing());
    }
}
